package cn.scw.common.utils;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;

public class MapUtils {

    public static String getBody(InputStream inStream) throws IOException {
        ByteArrayOutputStream outSteam = new ByteArrayOutputStream();
        byte[] buffer = new byte[1024];
        int len = 0;
        while ((len = inStream.read(buffer)) != -1) {
            outSteam.write(buffer, 0, len);
        }
        outSteam.close();
        inStream.close();
        return new String(outSteam.toByteArray(), "utf-8");
    }

    public static void main(String[] args) {
        String string = "zXMjtEJi4TfMaETTohMVRrNI8IMhmWsgs5LZnlWtmkQlRR5CiHx6QJuhxjvwX1BUNo9Mn64/ss6MQlDvnFk4JD/pk1F64jP+DxeM3/U9MPwVQO7wtSFEEI/Dc11+3rpTzRBEfZR6CQlplRATM3VEru76Ore6OsF28FqmXPqWhLCHqsajKeZJh/7HpSAF4vhkpWBAsILNj77yfIi8TvG/xnPpHqC44+NaRugmnXPmce5JUtqBivVAA7yN3/QB6Fl2uEyE8gBRPIAQ5WmH4sQEZ6s/W5QIOx0YiI/1+AF4a93SR/edBZ6m0Imwxw0dRKv0ioQI8nyMCTtZFR8K0GH6OvuWqk4CZ/UjgiW/6PBXcfM9g2D5+LnycLTztlMT+U/LJ+ct04cRfeI747lU6SObh4gRXbm1BFWZyr85xbdYVRrjXJ79ULctGzMXhQ/dgz/nNpfPnLw3hadbmNfN0B0uxnA4a3Ab0kNGrdpcZLv7YAZ3hisACPgr9dv6XeKeXks19W5rBLJpMMVhBQK/EGmkP52dHknI+JRQQCGYnBfjLExXrWq3pAydSWQ9PDRuR4JnAgvtfI5Kpw4CSLH3VJuL0ZfdidKBkEE0t+1X4gVGEvqW/Prbd9I13JWYmHAFmCzd4uT8MIZ4se/vBO0tXRx8jXShzAPUYei+r6BEOgyDGPIKYbkVaoQ/y60pU/Dv2CoNyxljRtnmy6ASMYe1d00VN3+zjwK3xehC76VwVBkWhZc2ozWvRAgKa07JYPeWTgfNwg2jvlSDfd7s8pzPDtHLzsPWhVpL/5lN67c601yo8lg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